package com.zmj.sy.mom.srv.aps.bean.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Comment("订单-零件")
@Getter
@Setter
@TableName("tb_order_part")
public class OrderPart extends BaseEntity {

    @Comment("PLMID")
    private String plmId;

    @Comment("零件PNG图纸路径")
    private String pngUrl;

    @Comment("零件DXF图纸路径")
    private String dxfUrl;

    @Comment("图号")
    private String drawing;

    @Comment("材质")
    private String texture;

    @Comment("厚度")
    private BigDecimal thickness;

    @Comment("长度(mm)")
    private BigDecimal length;

    @Comment("宽度(mm)")
    private BigDecimal width;

    @Comment("类型 1通用件 2普通件")
    private Integer type;

    @Comment("单件零件净重")
    private BigDecimal netWeight;

    @Comment("套料重量")
    private BigDecimal nestWeight;

    @Comment("面积")
    private BigDecimal area;

    @Comment("工序链")
    private String workChain;

    @Comment("来源 1自制件 2外协件")
    private Integer source;

    @Comment("是否关键件 0不是 1是")
    private Integer critical;

    @Comment("版本号")
    private Long versionCode;

    @Comment("物料类别：Platepart自制件，Component外购件, Assembly组件")
    private String materType;

    @Comment("是否制图就绪 1未就绪 2已就绪 3已转换 4已推送")
    private Integer drawStatus;

    @Comment("图纸版本号")
    private String versionNum;

    @Comment("图纸更新时间")
    private LocalDateTime drawUpdateTime;

}
